<?php
/**
 *
 * @author Mike Gao
 */
class Ask_supplier_detailViewModel extends ViewModel{
    protected $pk  = 'Ask_supplier_detail.id';

    public $viewFields = array(
    	'Ask_supplier_detail' => array('*'),
        
        'Supplier' => array('name'=>'sname','phone','fax', '_on' => 'Ask_supplier_detail.supplier_id = Supplier.id'),
        'Product' => array('id'=>'pid', 'name'=>'pname','_on' => 'Ask_supplier_detail.product_id = Product.id'),
        
    );


}
?>
